home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOR (English Version)
/
DOR (English Version).iso
/
directx.cab
/
dxdiacht.chm
/
linkcss.js
< prev
next >
Wrap
Text File
|
1999-09-09
|
972b
|
32 lines
writeCSS(scriptPath());
function scriptPath()
{
var col = document.scripts;
return col[col.length - 1].src;
}
function writeCSS(spath)
{
// Get a base CSS name based on the browser.
var css = "backsdkn.css";
if (navigator.appName == "Microsoft Internet Explorer") {
var sVer = navigator.appVersion;
sVer = sVer.substring(0, sVer.indexOf("."));
if (sVer >= 4) {
document.writeln('<SCRIPT FOR="reftip" EVENT=onclick>window.event.cancelBubble = true;</SCRIPT>');
document.writeln('<SCRIPT FOR="cmd_lang" EVENT=onclick>langClick(this);</SCRIPT>');
document.writeln('<SCRIPT FOR="cmd_filter" EVENT=onclick>filterClick(this);</SCRIPT>');
//document.writeln('<STYLE>body{display:none;}</STYLE>');
css = "backsdk4.css";
}
else
css = "backsdk3.css";
}
// The CSS is in the same directory as the script.
css = spath.replace(/linkcss.js/, css);
document.writeln('<LINK REL="stylesheet" HREF="' + css + '">');
}